<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>信息发布平台</title>
    <link href="${params.contextPath}/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${params.contextPath}/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        var initMenu = function () {
            $.ajax({
                url:"${params.contextPath}/web/loginresource.json",
                type:"post",
                dataType:"json",
                async:true,
                success:function(data){
                    if (data.status != "success") {
                        alert(data.message);
                        return;
                    }
                    var _resource_list = data.data;
                    var menus = "";
                    for (var i = 0; i < _resource_list.length; i ++) {
                        var menu = _resource_list[i];
                        if (menu.parentId == "ROOT" && menu.category == 1) {
                            menus += '<li class="left topNavChild1"><a href="${params.contextPath}/view/frame/left.htm?resourceId='+menu.id+'" target="leftFrame"><span>'+menu.name+'</span></a></li>';
                        }
                    }
                    $("div.topNav ul").html(menus);
                    $("div.topNav ul li").click(function () {
                        $(this).addClass("topNavChild1Hover").siblings().removeClass("topNavChild1Hover");
                    }).eq(0).find("span").click();
                }
            });
        };
        $(function () {
            //initMenu();
            $("#loginout").click(function () {
                $.ajax({
                    url:"${params.contextPath}/loginout.json",
                    type:"post",
                    dataType:"json",
                    async:false,
                    success:function(data){
                        if (data.status == "success") {
                            top.location.href = "${params.contextPath}" + data.message;
                            return;
                        }
                        alert(data.message);
                    }
                });
            });
        });
    </script>
</head>

<body>
<div class="top">
    <ul>
        <li class="left"><img src="${params.contextPath}/images/top_logo.png" width="396" height="50" /></li>
        <li class="right">
            <div class="left topNav">
                <ul>
                    <li class="left"><a href="Workbench.html" target="_parent" class="topNavChild1Hover">会议预定</a></li>
                    <li class="left topNavChild1"><a href="javascript:void(0)" target="_parent">信息发布</a></li>
                    <li class="left topNavChild1"><a href="javascript:void(0)">三台合一</a></li>
                </ul>
            </div>
            <div class="left topRight">
                <ul>
                    <li class="left p12"><img src="${params.contextPath}/images/line.png" width="1" height="24" /></li>
                    <li class="left"><a href="#"><img src="${params.contextPath}/images/ico1.png" width="24" height="24" /><br>帮助</a></li>
                    <li class="left" id="loginout"><a href="javascript:void(0)"><img src="${params.contextPath}/images/ico2.png" width="24" height="24" /><br>退出</a></li>
                    <li class="left p12"><img src="${params.contextPath}/images/line.png" width="1" height="24" /></li>
                    <li class="left pt15"><img src="${params.contextPath}/images/ico3.png" width="24" height="24" /></li>
                    <li class="left pt12 topRightAdmin" style="line-height:30px;"><span class="f14">李伟峰</span></li>
                    <!--<li class="left pt12 topRightAdmin"><span class="f14">李伟峰</span><br><span class="f12">指挥调度岗</span></li>-->
                </ul>
            </div>
        </li>
    </ul>
</div>
</body>
</html>
